var app = angular.module('myApp', ['ngRoute']);
app.config(['$routeProvider',function($routeProvider){
    $routeProvider
        .when("/",{
            templateUrl: "../views/homePage.html",
            controller:"personCtrl"
        })
        .when("/productListPage",{
            templateUrl: "../views/productListPage.html",
            controller:"productListPageCtrl"
        })
        .when("/shoppingCartPage",{
            templateUrl: "../views/shoppingCartPage.html",
            controller:"shoppingCartPageCtrl"
        })
        .when("/paymentPage",{
            templateUrl:"../views/paymentPage.html",
            controller:"paymentPageCtrl"
        })
        .otherwise({redirectTo:'/'})
}]);